package com.umeng.soexample.di.modules;

import com.umeng.soexample.mvp.contract.BrandFragmentContract;
import com.umeng.soexample.mvp.model.BrandFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class BrandFragmentModules {
    private BrandFragmentContract.BrandFragmentIView iView;

    public BrandFragmentModules(BrandFragmentContract.BrandFragmentIView iView) {
        this.iView = iView;
    }

    @Provides
    public BrandFragmentContract.BrandFragmentIView providerIView(){
        return iView;
    }

    @Provides
    public BrandFragmentContract.BrandFragmentIModel providerIModel(){
        return new BrandFragmentModel();
    }

}
